//
//  UIView+XMGExtension.h
//  5期-百思不得姐
//
//  Created by xiaomage on 15/11/6.
//  Copyright © 2015年 xiaomage. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (XMGExtension)
@property (nonatomic, assign) CGSize xmg_size;
@property (nonatomic, assign) CGFloat xmg_width;
@property (nonatomic, assign) CGFloat xmg_height;
@property (nonatomic, assign) CGFloat xmg_x;
@property (nonatomic, assign) CGFloat xmg_y;
@property (nonatomic, assign) CGFloat xmg_centerX;
@property (nonatomic, assign) CGFloat xmg_centerY;

@property (nonatomic, assign) CGFloat xmg_right;
@property (nonatomic, assign) CGFloat xmg_bottom;

+ (instancetype)viewFromXib;

- (BOOL)intersectWithView:(UIView *)view;

//更改searchbar圆角
- (UIView*)subViewOfClassName:(NSString*)className;

////渐进渐出显示动画
-(void)showEaseInOutAnimation;
//渐进渐出隐藏动画
-(void)hideEaseInOutAnimation;

/**
 加载动画
 @param layerColor 小圆点颜色
 @param layerCount 小圆点数量
 */
-(void)LoadAnimationLayerColor:(UIColor *)layerColor animationLayerCount:(NSInteger)layerCount;
@end
